﻿@using BonjourQuotation.UI.Models.PartialModel
@model QuotationVendorContractGridViewModel

    @if(Model.Error != null)
    {
        @Html.LabelForModel(Model.Error)
    }
    @if(Model.Rows.Count > 0)
    {
   <div style="height:160px; margin-left:8px; margin-right:10px; margin-top:10px">

       <div id="VendorContractHotelProp" style="display:none;">
           <div class="pull-left" style="margin-bottom:5px;">
               <div class="row form-row">
                   <div class=" col-lg-2" style="width: 12% !important;">
                       <div class="input-group">
                           <span class="input-group-addon table_inputs_SmallPadding2">@Html.LabelFor(model => Model.ContractTax)</span>
                           @Html.LabelForModel(Model.ContractTax, new { @class = "form-control" })
                       </div>
                   </div>
                   <div class=" col-lg-2">
                       <div class="input-group" style="width: 12% !important;">
                           <span class="input-group-addon table_inputs_SmallPadding2">@Html.LabelFor(model => Model.ContractOccTax)</span>
                           @Html.LabelForModel(Model.ContractOccTax, new { @class = "form-control" })
                       </div>
                   </div>
                   <div class=" col-lg-2">
                       <div class="input-group" style="width: 12% !important;">
                           <span class="input-group-addon table_inputs_SmallPadding2">@Html.LabelFor(model => Model.ContractLuggage)</span>
                           @Html.LabelForModel(Model.ContractLuggage, new { @class = "form-control" })
                       </div>
                   </div>
                   <div class=" col-lg-2">
                       <div class="input-group" style="width: 12% !important;">
                           <span class="input-group-addon table_inputs_SmallPadding2">@Html.LabelFor(model => Model.ContractCurr)</span>
                           @Html.LabelForModel(Model.ContractCurr, new { @class = "form-control" })
                       </div>
                   </div>
               </div>
               </div>
           </div>

       <div>
           <table class="table table-bordered table-hover table-condensed" style="margin-bottom: -1px !important; width: 1147px;">
               <thead>
                   <tr>
                       <th width= "3%;">#</th>
                       <th width ="35%;">Service</th>
                       <th width="6%;">Price</th>
                       <th width="6%;">Curr</th>
                       <th width="11%;">Contract Start</th>
                       <th width="11%;">Contract End</th>
                       <th width="28%;">Description</th>
                   </tr>
               </thead>
           </table>

           <div style="height:70px; overflow-y:auto;">
               <table class="table table-bordered table-hover table-condensed" style="width: 1147px; table-layout:fixed;">
                   <tbody>
                       @for (int ind = 0; ind < Model.Rows.Count; ind++)
                       {
                           <tr>
                               <td width="3%;">@Html.LabelForModel(Model.Rows[ind].LineNo)</td>
                               <td width="35%;">@Html.LabelForModel(Model.Rows[ind].Service)</td>
                               <td width="6%;">@Html.LabelForModel(Model.Rows[ind].Price)</td>
                               <td width="6%;">@Html.LabelForModel(Model.Rows[ind].ContractCurr)</td>
                               <td width="11%;">@Html.LabelForModel(Model.Rows[ind].ContractStart)</td>
                               <td width="11%;">@Html.LabelForModel(Model.Rows[ind].ContractEnd)</td>
                               <td width="28%;">@Html.LabelForModel(Model.Rows[ind].ContractDesc)</td>
                           </tr>
                       }
                   </tbody>
               </table>

           </div>
       </div>

       </div>
    }






